package com.dyh.service.serviceImpl;

import com.dyh.service.illService;
import com.dyh.po.illness;
import com.dyh.dao.illDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service("illService")
@Transactional
public class illServiceImpl implements illService{
    @Autowired
    illDao illdao;

    @Override
    public List<illness> findAllIll() {
        return illdao.findAllIll();
    }

    @Override
    public int addIll(String illid,String illname,String pym) {
        return illdao.addIll(illid,illname,pym);
    }

    @Override
    public illness findIllById(String id) {
        return illdao.findIllById(id);
    }

    @Override
    public int editIll(String illid, String illname, String pym) {
        return illdao.editIll(illid,illname,pym);
    }

    @Override
    public int deleteIll(String illid) {
        return illdao.deleteIll(illid);
    }
}
